//ybzuo
#pragma once
#include "road_node.h"
#include <vector>
class road_node_maker
{
public:
	static road_node_maker& single();
	void bind_object(HOBJECT _obj){m_car =_obj;}
	void update();
	void set_active(bool _b){m_active=_b;}
	void add_node();
	bool if_active()const{return m_active;}
	void cancel_last();
	void save_to_file(const char* _file_name);

private:
	bool m_active;
	road_node_maker();
	std::vector<road_node> m_nodes;
	road_node m_current_node;
	HOBJECT m_car;
	HTEXTURE m_tex;

};